{% load i18n simplemenu_tags static %}<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>QGIS {% block extratitle %}Plugins{% endblock %}</title>
  <meta name="AUTHOR" content="QGIS Web Team" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="stylesheet" href="{% static "style/new/basic.css" %}" type="text/css" />
    <link rel="stylesheet" href="{% static "bootstrap/css/bootstrap.min.css" %}" type="text/css" />
    <link rel="stylesheet" href="{% static "style/new/qgis-style.css" %}" type="text/css" />
    <link rel="stylesheet" href="{% static "style/new/bootstrap-sphinx.css" %}" type="text/css" />
    <link rel="stylesheet" href="{% static "bootstrap/css/bootstrap-responsive.min.css" %}" type="text/css" />
    <link rel="stylesheet" href="{% static "font-awesome/css/font-awesome.min.css" %}">
    <link type="text/css" href="{% static "style/style.css" %}" rel="stylesheet" />
    {% block extracss %}{% endblock %}

    <script type="text/javascript" src="{% static "js/jquery-1.11.1.min.js" %}"></script>
    <script type="text/javascript" src="{% static "bootstrap/js/bootstrap.min.js" %}"></script>
    {% block extrajs %}{% endblock %}

</head>
<body id="page_bg" {% block onload %}{% endblock %}>
    <div id="main_bg">
        {% block navigation %}
        <div id="navbar" class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
                    <button class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                    </button>

                    <a class="brand" href="https://www.qgis.org">QGIS</a>
                    {% if user.is_authenticated %}
                    <a id="user-tooltip" href="{% url "logout" %}" data-toggle="tooltip" data-placement="bottom" title="{{ user.username }}" style="float: right !important"><i class="icon-user icon-3x"></i></a>
                    {% else %}
                    <a href="{% url "login" %}"><i class="icon-signin icon-3x"></i></a>
                    {% endif %}

                    <form class="navbar-search" action="{% url "haystack_search" %}" method="get">
                      <input type="text"  id="id_q" name="q" class="search-query" placeholder="Search" />
                    </form>

                    {% get_namedmenu Navigation as menu %}
                     <div class="nav-collapse collapse">
                        <ul class="unstyled nav main-menu">
                        {% for item in menu %}
                            <li><a href="{{ item.page.url }}">{{ item.name }}</a></li>
                        {% endfor %}

                    {% get_namedmenu Hub as Hub %}
                            <li class="dropdown">
                              <a class="dropdown-toggle" id="drop4" role="button" data-toggle="dropdown" href="#">Hub<b class="caret"></b></a>
                              <ul id="sharingAppMenu" class="dropdown-menu" role="menu" aria-labelledby="drop4">
                                {% for item in Hub %}
                                  <li role="presentation"><a role="menuitem" tabindex="-1" href="{{ item.page.url }}">{{ item.name }}</a></li>
                                {% endfor %}
                              </ul>
                            </li>

                            {% if user.is_authenticated %}
                            <li><a href="{% url "logout" %}">{% trans "Logout" %}</a></li>
                            {% else %}
                            <li><a href="{% url "login" %}">{% trans "Login" %}</a></li>
                            {% endif %}
                            {% block navigation_extra %}
                            {% endblock %}


                        </ul>

                    </div>
                </div>
            </div>
        </div>
        {% endblock %}
        <div class="container-fluid">
            <div class="row-fluid">
                {% block leftbar %}
                <div class="span3 well" id="leftcolumn">
                    {% block menu %}&nbsp;{% endblock %}
                </div>
                {% endblock %}
                <div class="span9" id="maincolumn">
                    <section class="info">
                        {% block app_title %}{% endblock %}
                    </section>
                    {% if messages %}
                    <div class="alert">
                        <button type="button" class="close" data-dismiss="alert">&times;</button>
                        {% for message in messages %}
                        <p {% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message|safe }}</p>
                        {% endfor %}
                    </div>
                    {% endif %}
                    <div>
                    {% block content %}
                    {% endblock %}
                    </div>
                </div>
                {% block rightbar %}
<!--
                <div class="span2" id="rightcolumn"></div>
-->
                {% endblock %}
            </div><!-- end row fluid -->
        </div><!-- end container fluid -->
<section class="sponsors">
    <div class="container">
        <header>
            <h3>Sustaining Members</h3>
        </header>
        <div class="row">
            <a href="http://www.qgis.org/en/site/about/sustaining_members.html">
               <!--<div class="span6">
                    <div class="sponsor">
                        <img src="../_images/gold.png" width="90px" alt="">
                        <h5>Gold Sponsor</h5>
                    </div>
                </div>
                <div class="span6">
                    <div class="sponsor">
                        <img src="../_images/silver.png" width="90px" alt="">
                        <h5>Silver Sponsors</h5>
                    </div>
                </div>-->
                <div class="span12">
                    <div class="sponsor">
                        <img src="//www.qgis.org/en/_static/images/members.png" width="900px" alt="Sustaining member logos">
                    </div>
                </div>
            </a>
        </div>

    </div>
</section>
        <footer class="footer">
            <div class="container">
                <div>
                  <ul class="unstyled inline" id="social">
                    <li id="twitter"><a href="http://twitter.com/qgis" class="external"><div></div></a></li>
                    <li id="facebook"><a href="https://www.facebook.com/QGIS-298112000235096" class="external"><div></div></a></li>
                    <li id="github"><a href="http://github.com/qgis/QGIS-Django" class="external"><div></div></a></li>
                  </ul>
                </div>

                <p class="credit">{% trans "All content is licensed under" %} <a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 licence (CC BY-SA)</a>.</p>
            </div>
            <div class="container">
              {% block "credits" %}
              <p class="credit">{% trans "Select graphics from " %}<a href="http://thenounproject.com" target="_blank">{% trans "The Noun Project collection" %}</a>.</p>
              {% endblock %}
            </div>
        </footer>
    </div>
<script type="text/javascript">
$('#user-tooltip').tooltip('hide');
</script>
</body>
</html>
